import { mapState } from 'vuex'
export default {
    data() {
        return {
			
        }
    },
    onLoad() {
		//屏蔽分享页面
		const hideUrlList=[
			'pages/coupon/detail/index'
		]
		//获取路由信息
		const pages=getCurrentPages()
		//获取当前路由
		let nowPage=pages[pages.length-1]
		if(hideUrlList.includes(nowPage.route)){
			uni.hideShareMenu()
		}
	},
	computed:{
		...mapState({
			share:state => state.$share,
			$config:state => state.$config,
			isLogin:state => state.$isLogin,
			$s:state => state.$style,
			sys:state => state.$sys,
		})
	},
	methods:{
		
	},
	onShareAppMessage(res){
		return this.share
	},
	
	// #ifdef MP-WEIXIN
	//分享朋友圈
	onShareTimeline(res){
		return this.share
	},
	// #endif

}
